package kr.hkit.powerjava.chapter22.work2.dao;

import java.util.ArrayList;
import java.util.Comparator;

import kr.hkit.powerjava.chapter22.work.Student;

public class TestMain {
	public static void main(String[] args) {
		ArrayList<Student> arList;
	
		System.out.println("이름순 정렬(내림차순");
		sm.prnItem(new Comparator<Student>(){
			@Override
			public int compare(Student o1, Student o2){
				return (int) (o2.getTotar()-o1.getToter())
			}
		});
	
		System.out.println("국어점수 정렬(오름차순");
		sm.prItem(new Comparator<Student>(){
			@Overrinde
			public int compare(Student o1, Student o2){
				return (int) (o1.getKorScore()-o2.getKorScore())
			}
		});
		
		System.out.println("층 정렬(오름차순");
		sm.prItme(new Comparator<Department>() {
			@Override
			public int compare(department o1, department o2){
				return (o1.getfloor-o2.getfloor)
			}
		});
	
	
	}
	
	
	
}
